package com.wangran.boot2025.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;

@RestController
@RequestMapping("/test")
public class TestOne {

    @PostMapping("show")
    public String show() {
        System.out.println("woaini");
        return "我爱你";

    }


    @PostMapping("show2")
    public ArrayList<Integer> show2() {
        ArrayList<Integer> list = new ArrayList<>();

        list.add(99999);
        list.add(9999);
        list.add(999);
        list.add(99);
        list.add(9);


        return list;


    }

    @PostMapping("show3")
    public ArrayList<String> show3() {

        ArrayList<String> strings = new ArrayList<>();

        strings.add("床前明月光");
        strings.add("疑是地上霜");
        strings.add("举头望明月");
        strings.add("低头思故乡");


        return strings;




    }

    @PostMapping("show4")
    public HashMap<String, String> show4() {
        HashMap<String, String> map= new HashMap<>();

        map.put("周一","孙一铭");
        map.put("周二","狐林宇");
        map.put("周三","郭春晶");
        map.put("周四","裴夏青");

        return  map;


    }





    @PostMapping("show5")
    public HashMap<String, String> show5() {
        HashMap<String, String> map= new HashMap<>();

        map.put("周一","孙一铭");
        map.put("周二","狐林宇");
        map.put("周三","郭春晶");
        map.put("周四","裴夏青");

        return  map;


    }







}
